package com.simpleplayer.views.videoview;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import androidx.annotation.IntDef;

abstract class VideoViewInternal extends FrameLayout {

    public VideoViewInternal(Context context) {
        super(context);
        setLayoutParams(
                new ViewGroup.LayoutParams(
                        ViewGroup.LayoutParams.MATCH_PARENT,
                        ViewGroup.LayoutParams.MATCH_PARENT
                )
        );
    }

    @Override
    public void onLayout(boolean changed, int left, int top, int right, int bottom) {
        // 使用基类更新所有子View的布局
        super.onLayout(changed, left, top, right, bottom);
    }

    /**
     * 设置用于显示视频的 View
     * @param contentView 容纳视频内容的 View
     */
    public void setContentView(View contentView) {}

    public void onHide() {}

    public void onShow() {}
}
